package com.jinghao.ctws.entity;

import com.jinghao.core.common.entity.JingHaoBaseEntity;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhTable;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhField;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhCf;

import java.util.Date;
/**
 * (CwvProduct)模型对象
 * 
 * @version 1.0
 * @author: 244684437@qq.com
 */
@JhTable(
	jhfields={
		@JhField(jhCf=JhCf.UNID,property="productUnid"),
		@JhField(jhCf=JhCf.UUID,property="productUuid"),
		@JhField(jhCf=JhCf.STATUS,property="urlStatus")
	},
	note = ""
)
public class CwvProduct extends JingHaoBaseEntity<CwvProduct> {
	//======================字段列表========================
	/** 产品标识UNID */
	private Integer	productUnid;

	/** 产品标识UUID */
	private String	productUuid;

	/** 批次号 */
	private String	batchId;

	/** 订单号 */
	private String	spd;

	/** 托盘编号 */
	private String	fpalletId;

	/** 位置码 */
	private String	locationId;

	/** 产品编码 */
	private String	productId;

	/** 产品名称 */
	private String	name;

	/** 检查时间 */
	private Date	checkTime;

	/** 产品状态(0:正常,1:异常) */
	private Integer	status;

	/** 理货受损视频地址 */
	private String	urlLink;

	/** 是否受损链接（0:未生成;1:已生成） */
	private Integer	urlStatus;

	/** 托盘标识UUID */
	private String	fpalletUuid;

	/** 定单 */
	private String	orderId;

	/** 上传时间 */
	private Date	uploadTime;

	/** 新的文件名称 */
	private String	newFileName;

	public Integer getProductUnid() {
		return this.productUnid;
	}

	public void setProductUnid(Integer productUnid) {
		this.productUnid = productUnid;
	}

	public String getProductUuid() {
		return this.productUuid;
	}

	public void setProductUuid(String productUuid) {
		this.productUuid = productUuid;
	}

	public String getBatchId() {
		return this.batchId;
	}

	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}

	public String getSpd() {
		return this.spd;
	}

	public void setSpd(String spd) {
		this.spd = spd;
	}

	public String getFpalletId() {
		return this.fpalletId;
	}

	public void setFpalletId(String fpalletId) {
		this.fpalletId = fpalletId;
	}

	public String getLocationId() {
		return this.locationId;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	public String getProductId() {
		return this.productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCheckTime() {
		return this.checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getUrlLink() {
		return this.urlLink;
	}

	public void setUrlLink(String urlLink) {
		this.urlLink = urlLink;
	}

	public Integer getUrlStatus() {
		return this.urlStatus;
	}

	public void setUrlStatus(Integer urlStatus) {
		this.urlStatus = urlStatus;
	}

	public String getFpalletUuid() {
		return this.fpalletUuid;
	}

	public void setFpalletUuid(String fpalletUuid) {
		this.fpalletUuid = fpalletUuid;
	}

	public String getOrderId() {
		return this.orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Date getUploadTime() {
		return this.uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	public String getNewFileName() {
		return this.newFileName;
	}

	public void setNewFileName(String newFileName) {
		this.newFileName = newFileName;
	}

	public String toString() {
		StringBuffer buffer = new StringBuffer(super.toString());
		buffer.append("\n");
		buffer.append("\tproductUnid(产品标识UNID):").append(productUnid);
		buffer.append("\tproductUuid(产品标识UUID):").append(productUuid);
		buffer.append("\tbatchId(批次号):").append(batchId);
		buffer.append("\tspd(订单号):").append(spd);
		buffer.append("\n");
		buffer.append("\tfpalletId(托盘编号):").append(fpalletId);
		buffer.append("\tlocationId(位置码):").append(locationId);
		buffer.append("\tproductId(产品编码):").append(productId);
		buffer.append("\tname(产品名称):").append(name);
		buffer.append("\n");
		buffer.append("\tcheckTime(检查时间):").append(checkTime);
		buffer.append("\tstatus(产品状态(0:正常,1:异常)):").append(status);
		buffer.append("\turlLink(理货受损视频地址):").append(urlLink);
		buffer.append("\turlStatus(是否受损链接（0:未生成;1:已生成）):").append(urlStatus);
		buffer.append("\n");
		buffer.append("\tfpalletUuid(托盘标识UUID):").append(fpalletUuid);
		buffer.append("\torderId(定单):").append(orderId);
		buffer.append("\tuploadTime(上传时间):").append(uploadTime);
		buffer.append("\tnewFileName(新的文件名称):").append(newFileName);
		return buffer.toString();
	}
	//==================定制内容开始======================
	  public enum ECWvProduct {
		    /**0:正常**/
		   	status_0(0,"正常"),
		   	/**1:异常**/
		   	status_1(1,"异常"),
		   
		   
	    	/**0:未生成**/
		   	urlStatus_0(0,"未生成"),
	    	/**1:已生成**/
		   	urlStatus_1(1,"已生成"),
		   	
		   	
		    /**0:不上传**/
		    uploadStatus_0(0,"不上传"),
		    /**1:待上传**/
		    uploadStatus_1(1,"待上传"),
		    /**2:排队中**/
		    uploadStatus_2(2,"排队中"),
		    /**3:已上传**/
		    uploadStatus_3(3,"已上传"),
		   
		    /**0:不上传**/
		    fileUploadStatus_0(0,"不上传"),
		    /**1:待上传**/
		    fileUploadStatus_1(1,"待上传"),
		    /**2:排队中**/
		    fileUploadStatus_2(2,"排队中"),
		    /**3:已上传**/
		    fileUploadStatus_3(3,"已上传");
	    	 
	    	private int key;
	    	private String msg;
	    	ECWvProduct(int key,String msg) {
				this.key = key;
				this.msg=msg;
			}
	    	public int getKey(){
	    		return this.key;
	    	}
	  }
	//==================定制内容结束======================
}
